home *** CD-ROM | disk | FTP | other *** search
- Path: nic.wat.hookup.net!news
- From: xenon@the-fix.sos.on.ca
- Newsgroups: comp.lang.c
- Subject: Re: Is it possible?
- Date: Wed, 24 Jan 1996 21:59:27 GMT
- Organization: HookUp Communication Corporation, Waterloo, Ontario, CANADA
- Message-ID: <4e6auv$usc@nic.wat.hookup.net>
- References: <4e5kuq$9i7@news.ust.hk>
- NNTP-Posting-Host: slip2.sos.on.ca
- X-Newsreader: Forte Free Agent 1.0.82
-
- ee_chung@uxmail.ust.hk (Chu Shiu Chung) wrote:
-
-
- >Hello,
-
- > If I have declare the following:
- > #define FILENUM 12
-
- > Is it possible to make the compiler to replace this in printf:
- > printf("FILENUM is the number of files");
- This won't work. It is read as a literal sting. Only characters such
- as, / and " are special in a printf statement.
-
-
- >instead of
- > printf("%d is the number of files", FILENUM);
-
- >Just like what the compiler do in: int a=FILENUM;
-
- > Thanks! :>
-
- >C.S.C.
- xenon@sos.on.ca
-
-